package com.eduask.action;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.eduask.entity.User;

public class HelloController {
	
	private String name = "xiaowang";
	private User user;
	
	private String[] cityArr = new String[]{"beijing","shanghai","chengdu"};
	private List<String> cityList = new ArrayList<String>();
	private Map<String, Integer> map = new HashMap<String, Integer>();
	
	
	public String toPage(){
		user = new User();
		user.setUsername("laowang");
		user.setPassword("112233");
		
		cityList.add("beijing");
		cityList.add("shanghai");
		cityList.add("chengdu");
		
		map.put("beijing", 3000);
		map.put("shanghai", 2800);
		map.put("chengdu", 1300);
		
		return "success";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String[] getCityArr() {
		return cityArr;
	}

	public void setCityArr(String[] cityArr) {
		this.cityArr = cityArr;
	}

	public List<String> getCityList() {
		return cityList;
	}

	public void setCityList(List<String> cityList) {
		this.cityList = cityList;
	}

	public Map<String, Integer> getMap() {
		return map;
	}

	public void setMap(Map<String, Integer> map) {
		this.map = map;
	}
	
	

}
